package com.jeecg.p3.system.order.web;

import com.jeecg.p3.system.base.BaseController;
import org.apache.velocity.VelocityContext;
import org.jeecgframework.p3.core.util.plugin.ViewVelocity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 手动订单处理类
 */
@Controller
@RequestMapping("/system/back/order/finance")
public class FinanceOrderController extends BaseController {
    /**
     *
     *
     * @param request
     * @param response
     * @param pageNo 第几页
     * @param pageSize 页数大小
     * @throws Exception
     */
    @RequestMapping(value="/list.do",method = {RequestMethod.GET,RequestMethod.POST})
    public void findPage(HttpServletRequest request, HttpServletResponse response,
                         @RequestParam(required = false, value = "pageNo", defaultValue = "1") int pageNo,
                         @RequestParam(required = false, value = "pageSize", defaultValue = "10") int pageSize) throws Exception {
        VelocityContext velocityContext = new VelocityContext();
        String viewName = "system/back/order/finance_order.vm";
        ViewVelocity.view(request,response,viewName,velocityContext);
    }
}
